<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Artist List</title>
    </head>
    <body>
        <div>
            <g:link class="create" action="create">New Artist</g:link>
        </div>
        <div>
            <g:if test="${flash.message}">
              <div class="message">${flash.message}</div>
            </g:if>
            <h1>Artist List</h1>
            <div>
                <table>
                    <thead>
                        <tr>
                   	        <g:sortableColumn property="name" title="Name" />
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${artistInstanceList}" status="i" var="artistInstance">
                        <tr class="${(i % 2) == 0 ? 'dataTableRow1' : 'dataTableRow2'}">
                            <td><g:link action="show" id="${artistInstance.id}">${fieldValue(bean:artistInstance, field:'name')}</g:link></td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${artistInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
